import request from "@/utils/request.js"



export function editPage(id) {
    return request({
        method:"get",
        url:"/person/" + id,
    })
}

export function editSave(form) {
    return request({
        method :"put",
        url :"/person",
        data :form
    })
}

export function addSave(form) {
    return  request({
        method :"post",
        url :"/person",
        data :form

    })
}

export function listPerson(query) {
    return  request({
        method:"get",
        url:"/person/listForPage",
        params : query
    })
}

export function deletePersons(idss) {
    return   request({
        method:"delete",
        url:"/person/" + idss,
    })

}
